package cn.snowheart.ssm.pojo;

/**
 * @author liuwanxiang
 * @version 2018/4/22
 */
public class RestResponse<T> {

    private boolean success;
    private T result;

    public RestResponse() {
    }

    public RestResponse(boolean success, T result) {
        this.success = success;
        this.result = result;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
